package com.hand.qiandu.mapper;

import com.hand.qiandu.domain.Role;
import com.hand.qiandu.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 24748  刘瑞锋
 * @date 2019/7/16
 */

@Mapper
public interface UserMapper {

    List<User> queryAllUser();
    User queryUser(@Param("id") Long id);
    List<Role> queryUserRole(Long id);
    Long insertUser(User user);
    void updateUser( User user);
    void deleteUser(Long id);
    List<User> queryUserByIds(@Param("ids") List<Long> ids);

}
